package com.martin.vista;

import java.awt.Frame;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.imageio.ImageIO;
import javax.swing.UIManager;

/**
 * Controla los elementos de la UI
 * 
 */
public class ControladorGUI {

	private MainFrame mainFrame;

	public ControladorGUI() {
		setLookandFeel();

		mainFrame = new MainFrame(this);
	}

	public void mostrarUI() {
		mainFrame.setVisible(true);
	}

	private void setLookandFeel() {
		try {
			UIManager.setLookAndFeel(UIManager
					.getCrossPlatformLookAndFeelClassName());
		} catch (Exception ex) {
			Logger.getLogger(ControladorGUI.class.getName()).log(Level.SEVERE,
					null, ex);
		}
	}

	public void repaint() {
		mainFrame.repaint();
	}

	private static final Logger LOG = Logger.getLogger(ControladorGUI.class
			.getName());
}
